package com.huluobo.base.db

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import com.huluobo.base.bean.VideoBean

/**
 *  Created by LC on 2024/10/31.
 */
@Dao
interface VideoDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun insertVideoInfo(videoBean: VideoBean)

    @Delete
    suspend fun deleteVideoInfo(videoBean: VideoBean)

    @Update
    suspend fun updateVideoInfo(videoBean: VideoBean)

    @Query("select * from video_info")
    suspend fun queryVideoInfo(): List<VideoBean>
}